package com.wen.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wen.mapper.OrderDetailsMapper;
import com.wen.pojo.OrderDetails;
import com.wen.pojo.dto.OrderDetailsDto;
import com.wen.service.OrderDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderDetailsServiceImpl extends ServiceImpl<OrderDetailsMapper, OrderDetails> implements OrderDetailsService {

    @Autowired
    private OrderDetailsMapper mapper;

    @Override
    public List<OrderDetailsDto> selById(String id) {

        List<OrderDetailsDto> orderDetails = mapper.selById(id);

        return orderDetails;
    }

    @Override
    public OrderDetailsDto selId(String id) {

        OrderDetailsDto orderDetails = mapper.selId(id);

        return orderDetails;
    }
}
